set(CONCURRENTQUEUE_TEST concurrentqueue_test)

if(NOT CPUNCHLINE_BUILD_THIRDPARTY)
    find_package(concurrentqueue REQUIRED)
endif()

add_executable(${CONCURRENTQUEUE_TEST}
    concurrentqueue_test.cpp
)
if(NOT CPUNCHLINE_BUILD_THIRDPARTY)
    target_link_libraries(${CONCURRENTQUEUE_TEST} PRIVATE Threads::Threads concurrentqueue::concurrentqueue)
else()
    target_include_directories(${CONCURRENTQUEUE_TEST} PRIVATE ${CPUNCHLINE_PRE_BUILT_DIR}/include/concurrentqueue)
endif()
target_include_directories(${CONCURRENTQUEUE_TEST} PRIVATE .)

install(TARGETS ${CONCURRENTQUEUE_TEST} DESTINATION test)
